//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package wudashan.Protocol;

import com.fasterxml.jackson.databind.node.ObjectNode;

public class ProtocolAdapterImplement implements ProtocolAdapterInterface {
    public ProtocolAdapterImplement() {
    }

    public ObjectNode decode(byte[] binaryData) {
        try {
            ReportProcess lightProcess = new ReportProcess(binaryData);
            ObjectNode objectNode = lightProcess.toJsonNode();
            return objectNode;
        } catch (Exception var4) {
            return null;
        }
    }

    public byte[] encode(ObjectNode JsonData) {
        try {
            CmdProcess cmdProcess = new CmdProcess(JsonData);
            byte[] byteNode = cmdProcess.toByte();
            return byteNode;
        } catch (Exception var4) {
            var4.printStackTrace();
            return null;
        }
    }
}
